import { ajax } from '../http.js';
// import { ajaxSync } from '../httpSync.js';

const getWithdrawInfoUrl = '/authc/accountwithdraw/find_accountwithdraw_by_user_id'; // 用户提现相关信息查询
const withdrawUrl = '/authc/accountwithdraw/save_accountwithdraw'; // 用户提现
const getUserUpgradeApplyUrl = '/authc/user_upgrade_apply/find_success_by_user_id'; // 获取用户升级申请相关信息进度

const getUserUpgradeApplyApi = (data, success, fail, opt) => { // 获取用户升级申请相关信息进度
  ajax({
    url: getUserUpgradeApplyUrl,
    data: data,
    success: success,
    fail: fail,
    opt: opt
  });
};

const getWithdrawInfoApi = (data, success, fail, opt) => { // 用户提现相关信息查询
  ajax({
    url: getWithdrawInfoUrl,
    data: data,
    success: success,
    fail: fail,
    opt: opt
  });
};

const withdrawApi = (data, success, fail) => { // 用户提现
  ajax({
    url: withdrawUrl,
    data: data,
    success: success,
    fail: fail
  });
};


export {
  getWithdrawInfoApi,
  withdrawApi,
  getUserUpgradeApplyApi
}